package net.xinqushi.design.prototype;

/**
 * 类比javascript 中的prototype共有对象
 */
public class ConcretePrototype extends Prototype{

    public ConcretePrototype(){

    }
    public ConcretePrototype(String spoonName){
        this.spoonName = spoonName;
    }

    public static void main(String[] args) {
        Prototype object = new ConcretePrototype("spoon");
        Prototype cloneObj = object.clone(Prototype.class);
        System.out.println(cloneObj.getSpoonName());
    }

}
